<template>
  <div class="container">
    <el-row class="el-row">
      <el-col
        ><el-menu
          class="el-menu-demo"
          mode="horizontal"
          @select="handleSelect"
          background-color="#fff"
          text-color="#fff"
          active-text-color="#409EFF"
        >
          <el-menu-item index="1" @click="$router.push('/dashboard')"
            >首页</el-menu-item
          >
          <el-menu-item index="2" @click="$router.push('/agents')"
            >房产经纪</el-menu-item
          >
          <el-menu-item index="3" @click="$router.push('/categories')"
            >地产分类</el-menu-item
          >
          <el-menu-item index="4" @click="$router.push('/about')"
            >关于我们</el-menu-item
          >
        </el-menu></el-col
      >
      <el-col :span="3" class="el-col">
        <!-- <el-button type="text">登录</el-button> -->
        <!-- <el-button type="text">注册</el-button> -->
        <a class="link" href="http://localhost:9528/#/login">后台管理系统</a>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  data() {
    return {
      activeIndex1: "1",
    };
  },
  created() {
    // this.handleSelect();
  },
  methods: {
    handleSelect(index, indexPath) {
      // console.log(index);
      // this.activeIndex1 = index;
    },
  },

  computed: {},
};
</script>

<style lang="scss" scoped>
.container {
  position: fixed;
  border: none;
  width: 100%;
  height: 50px;
  z-index: 100;
}
.el-row {
  display: flex;
  align-items: center;
  // padding-left: 200px;
  //border-bottom: 1px solid #ccc;
}
.el-col {
  display: flex;
  align-items: center;
  .link {
    // color: #fff;
    width: 100px;
    font-size: 14px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
  }
  background-color: #424242;
  height: 50px;
}
.el-menu-demo {
  width: 100%;
  margin-left: 200px;
  height: 50px;

  // border-bottom-color: #fff !important;
}
.el-menu-item {
  &:hover {
    background-color: #565656 !important;
  }
  height: 50px !important;
}
.el-menu--horizontal > .el-menu-item.is-active {
  color: #fff !important;
  //background-color: #409eff !important;
  line-height: 50px !important;
  border-bottom: 3px solid rgb(62, 243, 203) !important;
}
.el-menu-item {
  background-color: #424242 !important;
  line-height: 50px !important;
}
.el-menu.el-menu--horizontal {
  background-color: #424242 !important;
  border: none;
}
</style>